package com.feri.fitness.cs.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 千锋郑州Java学科欢迎你
 * @program: Fitness
 * @description: 实体层 和数据库的表一一对应
 * @author: Feri
 * @create: 2023-01-12 08:59:28
 */
@Data
@NoArgsConstructor
@TableName("t_mood_collect")
public class MoodCollect {
    /**
    *序号,主键 */
     @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    *用户id */
    private Integer uid;
    /**
    *动态id */
    private Integer mid;
    /**
    *创建时间 */
    private Date ctime;

    public MoodCollect(Integer uid, Integer mid) {
        this.uid = uid;
        this.mid = mid;
        this.ctime=new Date();
    }
}